/* eslint valid-jsdoc: "off" */

'use strict';

/**
 * @param {Egg.EggAppInfo} appInfo app info
 */
module.exports = appInfo => {
  /**
   * built-in config
   * @type {Egg.EggAppConfig}
   **/
    const config = exports = {
    mongoose: {
      client: {
        url: 'mongodb://test:123@120.25.251.98:27017/wechat?authSource=admin',
        options: {
          useNewUrlParser: true,
        }
      }
    },
    view: {
      mapping: {
        '.html': 'arttemplate'
      }
    }
  };

  // use for cookie sign key, should change to your own and keep security
  config.keys = appInfo.name + '_1616142381217_6013';

  // add your middleware config here
  // config.middleware = ["auth"];
  config.middleware = ['cors'];

  // add your user config here
  const userConfig = {
    // myAppName: 'egg',
  };

  

  return {
    ...config,
    ...userConfig,
  };
};
